#pragma once
#include "cocos2d.h"
#include <map>
class CGlobal
{
public:
	static cocos2d::CCSize GetResolution();
	static float		   GetRatioX();
	static float           GetRatioY();
	static cocos2d::CCSprite *SpriteWithFile(const char *pName);
	static cocos2d::CCTexture2D *TextureWithFile(const char *pName);
	static cocos2d::CCLabelTTF *GetLocalTime();
	static void UpdateLocalTime(cocos2d::CCLabelTTF* pLable);
	static void Exit();
	static void StopAllMusic();

	static cocos2d::CCSize GetPlayerSize();
	static void   initGrid();
	static void   getGrid(std::vector<std::pair<int,int> > &netGridding);
	static cocos2d::CCFiniteTimeAction *getDelayFun(float fSec,cocos2d::CCObject *pParent,const cocos2d::SEL_CallFuncN &callFun);

	static bool	  isXCrossLimit(const cocos2d::CCPoint &ptPos,const cocos2d::CCSize &objSize);




	
	


private:
	static std::vector<std::pair<int,int> > netGridding_;  
	

};


